<!DOCTYPE html>
<html lang="en">
<head>

<!-- start: Meta -->
<meta charset="utf-8">
<title>Optimus Dashboard</title>
<meta name="description"
	content="Optimus Dashboard Bootstrap Admin Template.">
<meta name="author" content="‚âà√Öukasz Holeczek">
<!-- end: Meta -->

<!-- start: Mobile Specific -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- end: Mobile Specific -->

<!-- start: CSS -->
<link id="bootstrap-style" href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
<link id="base-style" href="css/style.css" rel="stylesheet">
<link id="base-style-responsive" href="css/style-responsive.css"
	rel="stylesheet">
<link rel="stylesheet" href="assets/2.0.2/optional/css/common.css" />
<link rel="stylesheet" href="assets/2.0.2/optional/css/layout.css" />
<link rel="stylesheet" href="css/gestioneutenti.css" />


<!-- end: CSS -->
 <script src="assets/2.0.2/required/js/carrotsearch.foamtree.html5.min.js"></script>
<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
	  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->

<!-- start: Favicon -->
<link rel="shortcut icon" href="img/favicon.ico">
<!-- end: Favicon -->

</head>

<body>
<!-- start: Header -->
	<div class="navbar">
		<div class="navbar-inner">
			<div class="container-fluid">
				<a class="btn btn-navbar" data-toggle="collapse"
					data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse">
					<span class="icon-bar"></span> <span class="icon-bar"></span> <span
					class="icon-bar"></span> </a> 

				<!-- start: Header Menu -->
				<div class="btn-group pull-right">

					<!-- start: User Dropdown -->
					<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
						<i class="icon-user"></i><span id="etichetta-utente" class="hidden-phone hidden-tablet">
						<script id="utente-template" type="text/x-handlebars-template">{{utente}}</script>
						</span> <span class="caret"></span> </a>
					<ul class="dropdown-menu">
						<li><a href="modificapwd.html">Modifica Password</a>
						</li>
						<li id="g_utenti"><a href="gestione_utenti.html">Gestione Utenti</a>
						</li>
						<li id="g_sorgenti"><a href="gestione_sorgenti.html">Gestione Sorgenti</a>
						</li>
						<li class="divider"></li>
						<li><a href="login.html">Logout</a>
						</li>
					</ul>
					<!-- end: User Dropdown -->
				</div>
				<!-- end: Header Menu -->

			</div>
		</div>
	</div>
	<div id="under-header"></div>
	<!-- start: Header -->

	<div class="container-fluid">
		<div class="row-fluid">

				<!-- start: Main Menu -->
			<div class="span2 main-menu-span">
				<div class="nav-collapse sidebar-nav">
					<ul id="nav_sorgenti" class="nav nav-tabs nav-stacked main-menu">
						<li class="nav-header hidden-tablet">Sorgenti Dati</li>
						<li onclick='eraseCookie("fontecliccata");'><a href="index.html"><i class="icon-list-alt"></i><span
								class="hidden-tablet"> Dashboard</span>
						</a>
						</li>
                                                <ul id="ulbo" class="nav nav-tabs nav-stacked main-menu">
						<script id="el_fonti" type="text/x-handlebars-template">
                                                    {{#each fontifill}}
                                                    <li class="navigation" id="{{this}}" onclick='eraseCookie("fontecliccata");createCookie("fontecliccata","{{this}}",1);'><a href="dettaglio.html"><i class="icon-list-alt"></i><span class="hidden-tablet">{{this}}</span></a></li>
                                                    {{/each}}
                                                </script> 
                                                </ul>
					</ul>
				</div>
				<!--/.well -->
			</div>
			<!--/span-->
			<!-- end: Main Menu -->

			<noscript>
				<div class="alert alert-block span10">
					<h4 class="alert-heading">Warning!</h4>
					<p>
						You need to have <a href="http://en.wikipedia.org/wiki/JavaScript"
							target="_blank">JavaScript</a> enabled to use this site.
					</p>
				</div>
			</noscript>

			<div id="content" class="span10">
				<!-- start: Content -->

				<div>
					<ul class="breadcrumb">
						<li><a href="#">Home</a> <span class="divider">/</span></li>
						<li><a href="#">Dashboard</a></li>
					</ul>
				</div>

				<div class="row-fluid" style="height: 400px;">

					<div class="box spanfull">
						<div class="box-header">
							<h2>
								<i class="icon-signal"></i><span class="break"></span>Gestione Utenti
							</h2>
							 <div class="box-icon">
						<a href="#" id="addutente" class="btn-settings"><i class="icon-plus"></i> Aggiungi utente </a>
						
							</div> 
						</div>
						
						<div id="tab" class="box-content">
						
						<!-- ----------------------div di conferma--------------------------------------- -->
							<div id="Pincopallino"> 
							<p align="center" style="font-family:monaco; font-size:20px;">Confermi?</p>
							<br><br>
							<button type="button" id="ok" onclick="" style="position:relative; left:55%;" class="btn">Salva Modifiche</button>
							<button type="button" id="no" style="position:relative; left:15%;" class="btn">Annulla Modifiche</button>
						
 							
 							</div>

						<!-- ----------------------fine div di conferma--------------------------------------- -->
						
						
						<div id ="fonti_tab">
						
	
						 <script id="el_sorg" type="text/x-handlebars-template">
						
							
						 	<table id="tabella_permessi" class="table" style="width:100%">
							<tr>
								<th style="width:30%"> Utente</th>
								<th>Permessi di accesso alle fonti</th>
							</tr>
							{{#each selezione}}
								<tr>
									<td>{{this.utente}}<br><br>
									<input id="{{this.utente}}"type="checkbox" class="att" style="margin-top:-1%;">&nbsp&nbsp&nbspAttivo</input>
									<br>
								</td>
								<td>
									<div class="div_fonte">
										<input class="input pagina" type="checkbox" id="{{this.utente}}$admin" style="left:10%" />
										<span class="elem_fonte">Admin</span>
									</div>
									{{#each fonti}}
									<div class="{{../this.utente}}&{{this.nome}}$ div_fonte">

										<input style="left:10%" class="input pagina" type="checkbox" id="{{../this.utente}}${{this.nome}}" {{checked}}/>
										<span class="elem_fonte">{{this.nome}}</span>
									</div>
									{{/each}}
								</td>
								</tr>
							{{/each}}

							</table>

						<div class="btn-group button-reg-user">
						<button type="button" id="save" class="btn btn-primary" style="left:-12%;">Salva Modifiche</button>
						<button type="button" id="annulla" class="btn btn-primary" >Annulla Modifiche</button>
						</div>
						</script> 
				
					</div> 


<!-- ---------------------Registrazione di un nuovo utente--------------------------------------- -->
					<div id="reg_tab">
					
						<table id="table-register" class="table">
							<tr><th>Inserisci i dati dell'utente</th><th></th></tr>
							<tr>
								<th>
									Nome<br>
								

								</th>
								<th class="th-reg">
									<i class="icon-user"></i> <input id="nome-reg" class= "input-reg" type="text" placeholder="Nome"/><br>	<div id="errore-nome">Errore: il nome non può contenere numeri e/o simboli!</div>
								</th>
							</tr>

							<tr>
								<th>
									Cognome<br>
									
								</th>
								<th class="th-reg">
									<i class="icon-user"></i> <input id="cognome-reg" class= "input-reg" type="text" placeholder="Cognome"/><div id="errore-cognome">Errore: il cognome non può contenere numeri e/o simboli!</div>
								</th>
							</tr>

							<tr>
								<th>
									Password<br>
									<div id="errore-password">
									NOTA: la password deve:
										<ul>
										<li>contenere almeno un numero;</li>
										<li>avere una lunghezza compresa tra 6 e 12 caratteri;</li>
										</ul>
									</div>
								</th>
								<th class="th-reg">
									<i class="icon-lock"></i> <input id="password-reg" class= "input-reg" type="password" placeholder="Inserisci password"/>
								</th>
							</tr>

							<tr>
								<th>
									Ripeti password<br>
									
								</th>
								<th class="th-reg">
									<i class="icon-lock"></i> <input id="confirm-password-reg" class= "input-reg" type="password" placeholder="Ripeti la Password"/><div id="errore-confirm">Errore: la password inserita non corrisponde alla precedente!</div>
								</th>
							</tr>

							<tr>
								<th>
									Email<br>
									
								</th>
								<th class="th-reg">
									<i class="icon-envelope"></i> <input id="username-reg" class= "input-reg" type="text" placeholder="Email"/><div id="errore-username">Errore: controlla il formato dell'email!</div>
									<div id="errore-username-vuoto">Inserisci l'email dell'utente!</div>
								</th>
							</tr>

							<tr>
								<th>
									Data di nascita<br>
									
								</th>
								<th class="th-reg">
									<i class="icon-calendar" style="float:left;float:bottom"></i>
									<select id="giorno" name="Giorno" style="float:left;width:28%">
										<option value="" selected>Giorno</option>
										<option value="1">1</option>
										<option value="2">2</option>
										<option value="3">3</option>
										<option value="4">4</option>
										<option value="5">5</option>
										<option value="6">6</option>
										<option value="7">7</option>
										<option value="8">8</option>
										<option value="9">9</option>
										<option value="10">10</option>
										<option value="11">11</option>
										<option value="12">12</option>
										<option value="13">13</option>
										<option value="14">14</option>
										<option value="15">15</option>
										<option value="16">16</option>
										<option value="17">17</option>
										<option value="18">18</option>
										<option value="19">19</option>
										<option value="20">20</option>
										<option value="21">21</option>
										<option value="22">22</option>
										<option value="23">23</option>
										<option value="24">24</option>
										<option value="25">25</option>
										<option value="26">26</option>
										<option value="27">27</option>
										<option value="28">28</option>
										<option value="29">29</option>
										<option value="30">30</option>
										<option value="31">31</option>
									</select>
									<select id="mese" name="Mese" style="float:left;width:28%;margin-left:3.3%;">
										<option value="" selected>Mese</option>
										<option value="01">Gennaio</option>
										<option value="02">Febbraio</option>
										<option value="03">Marzo</option>
										<option value="04">Aprile</option>
										<option value="05">Maggio</option>
										<option value="06">Giugno</option>
										<option value="07">Luglio</option>
										<option value="08">Agosto</option>
										<option value="09">Settembre</option>
										<option value="10">Ottobre</option>
										<option value="11">Novembre</option>
										<option value="12">Dicembre</option>
									</select>
									<input id="anno" style="float:left;width:28%;margin-left:3.3%;" type="text" placeholder="Anno (AAAA)"/><div id="errore-data">Inserisci la data di nascita dell'utente!</div>

								</th>
							</tr>

							<tr>
								<th>
									Citt&agrave<br>
									
								</th>
								<th class="th-reg">
									<i class="icon-map-marker"></i> <input id="citta" class= "input-reg" type="text" placeholder="Citt&agrave"/><div id="errore-citta">Errore: la città non può contenere simboli e/o numeri!</div>
								</th>
							</tr>

							<tr>
								<th>
									Ha i permessi da amministratore?<br>
								</th>
								<th class="th-reg"><input id="admin-reg" type="checkbox"/></th>
							</tr>

							<tr>
								<th>
									L'utente è abilitato?<br>
								</th>
								<th class="th-reg"><input id="attivo-reg" type="checkbox"/></th>
							</tr>

						</table>
					
						<div id="errore-general">Errore: la città non può contenere simboli e/o numeri!</div>
							<div id="btn-g" class="btn-group button-reg-user">
								<button id="back" type="button" class="btn btn-primary">
								<i class="icon-arrow-left icon-white"></i> Indietro</button>
								<button id="reset" type="button" class="btn btn-primary">
								<i class="icon-remove icon-white"></i> Pulisci tutti i campi</button>
								<button id="register" type="button" class="btn btn-primary" disabled>
								<i class="icon-ok icon-white"></i> Conferma</button>
							</div>
							<div class="clearfix"></div>
					
					</div>


				<div class="clearfix"></div>
			

				

			</div>
			<!--/.fluid-container-->
                        
			<!-- start: JavaScript-->
                        
			<script src="js/jquery-1.7.2.min.js"></script>
			<script src="js/jquery-ui-1.8.21.custom.min.js"></script>
                        <script src="js/handlebars.js"></script>
			<script src="js/bootstrap.js"></script>

			<script src="js/jquery.cookie.js"></script>

			<script src='js/fullcalendar.min.js'></script>

			<script src='js/jquery.dataTables.min.js'></script>

			<script src="js/excanvas.js"></script>
			
			<script src="js/jquery.chosen.min.js"></script>

			<script src="js/jquery.uniform.min.js"></script>

			<script src="js/jquery.cleditor.min.js"></script>

			<script src="js/jquery.noty.js"></script>

			<script src="js/jquery.elfinder.min.js"></script>

			<script src="js/jquery.raty.min.js"></script>

			<script src="js/jquery.iphone.toggle.js"></script>

			<script src="js/jquery.uploadify-3.1.min.js"></script>

			<script src="js/jquery.gritter.min.js"></script>

			<script src="js/jquery.imagesloaded.js"></script>

			<script src="js/jquery.masonry.min.js"></script>

			<script src="js/custom.js"></script>
			<script src="js/md5.js"></script>
            <script src="js/cookies.js"></script>
             <script src="js/gestioneutenti.js"></script>
             <script src="js/register.js"></script>
     
    
          

                        
</body>
</html>
